<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="customer" tagdir="/WEB-INF/tags/customer"%>
<%@ taglib prefix="system" tagdir="/WEB-INF/tags/system"%>
<%@ taglib prefix="probiz" tagdir="/WEB-INF/tags/probiz"%>
<title><fmt:message key="customer.modifyPassword"/></title>

<content tag="heading">
	<fmt:message key="customer.personalInfo" />
</content>
<content tag="position">
	<fmt:message key="accountMenu.personInfo" /> &gt; <b><fmt:message key="customer.modifyPassword" /></b>
</content>

	
<form id="modifyPasswordModel" action="${ctxPath}/customer/csModifyPassword.html" method="post" onsubmit="return validateModifyPasswordModel(this);">
	
	<div class="password_filter">
		<p>&nbsp;&nbsp;为保障你的账户安全，不要使用简单密码（纯数字的或者是纯字母的），请使用英文字母、数字、下划线、减号的组合密码（6-16个字符）。<br/>
		&nbsp;&nbsp;经调查和实验数据表明，过于简单的密码被盗取的几率比复杂密码高出80%。</p>
		<ins></ins>
	</div>
	<div class="tab_06">
		<ul class="content clearfix">
			<li><span><fmt:message key="customer.modifyPassword" /></span></li>
		</ul>
	</div>
	<div class="display_info">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_display">
			<tr>
				<td colspan="2">
					<spring:bind path="modifyPasswordModel.*">
						<c:forEach var="error" items="${status.errorMessages}">
							<div class="error_txt">
								<c:out value="${error}" escapeXml="false" />
							</div>
						</c:forEach>
					</spring:bind>
				</td>
			</tr>
			<tr>
				<th width="20%"><fmt:message key="appUser.oldPassword" />(<span class="red">*</span>)：</th>
				<td>
					<spring:bind path="modifyPasswordModel.oldPassword">
						<input name="oldPassword" id="oldPassword" type="password" class="inputtxt2" style="width:180px" />
					</spring:bind>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<span class="gray"><fmt:message key="appUser.password.rule" /></span>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<div id="passStrengthId"></div>
				</td>
			</tr>
			<tr>
				<th><fmt:message key="appUser.newPassword" />(<span class="red">*</span>)：</th>
				<td>
					<spring:bind path="modifyPasswordModel.password">
						<span><input name="password" id="password" type="password" class="inputtxt2" style="width:180px" /></span><br />
					</spring:bind> 
				</td>
			</tr>
			<tr>
				<th><fmt:message key="appUser.rePassword" />(<span class="red">*</span>)：</th>
				<td>
					<spring:bind path="modifyPasswordModel.repassword">
						<input name="repassword" id="repassword" type="password" class="inputtxt2" style="width:180px" />
					</spring:bind>
				</td>
			</tr>
		</table>
	</div>
	<div class="profile_go">
		<input type="hidden" name="doAction" value="save" />
		<input name="" type="image" onclick="bCancel=false" src="${txtImagePath}/btn_submit_01.gif" alt="确定" />
	</div>
</form>

<v:javascript formName="modifyPasswordModel" staticJavascript="false" ></v:javascript>
<c:set var="plugin_passwordStrength" value="true" scope="request"/>
<script type="text/javascript">
$j(document).ready(function () {
	
	<%-----start:密码强度-----%>
	$j("#password").passStrength({
		locationId: "passStrengthId"
	});
	<%-----end: 密码强度-----%>
	
});


</script>